import Vue from "vue";
import Vuex from "vuex";
//引入模块化的store
import Cart from "./Cart"
import Product from "./Product"
Vue.use(Vuex);
//根store
export default new Vuex.Store({
  state: {
    msg: "根store"
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    Product,
    Cart
  },
});
